Optimal. Leaf size=92 \[ \frac {(c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {csch}(a+b x)}{2 b^2}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b}+\frac {d \text {PolyLog}\left (2,-e^{a+b x}\right )}{2 b^2}-\frac {d \text {PolyLog}\left (2,e^{a+b x}\right )}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {4270, 4267,
2317, 2438} \begin {gather*} \frac {d \text {Li}_2\left (-e^{a+b x}\right )}{2 b^2}-\frac {d \text {Li}_2\left (e^{a+b x}\right )}{2 b^2}-\frac {d \text {csch}(a+b x)}{2 b^2}+\frac {(c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2317
Rule 2438
Rule 4267
Rule 4270
Rubi steps
\begin {align*} \int (c+d x) \text {csch}^3(a+b x) \, dx &=-\frac {d \text {csch}(a+b x)}{2 b^2}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b}-\frac {1}{2} \int (c+d x) \text {csch}(a+b x) \, dx\\ &=\frac {(c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {csch}(a+b x)}{2 b^2}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b}+\frac {d \int \log \left (1-e^{a+b x}\right ) \, dx}{2 b}-\frac {d \int \log \left (1+e^{a+b x}\right ) \, dx}{2 b}\\ &=\frac {(c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {csch}(a+b x)}{2 b^2}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b}+\frac {d \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{a+b x}\right )}{2 b^2}-\frac {d \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{a+b x}\right )}{2 b^2}\\ &=\frac {(c+d x) \tanh ^{-1}\left (e^{a+b x}\right )}{b}-\frac {d \text {csch}(a+b x)}{2 b^2}-\frac {(c+d x) \coth (a+b x) \text {csch}(a+b x)}{2 b}+\frac {d \text {Li}_2\left (-e^{a+b x}\right )}{2 b^2}-\frac {d \text {Li}_2\left (e^{a+b x}\right )}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.69, size = 313, normalized size = 3.40 \begin {gather*} -\frac {d x \text {csch}^2\left (\frac {a}{2}+\frac {b x}{2}\right )}{8 b}-\frac {c \text {csch}^2\left (\frac {1}{2} (a+b x)\right )}{8 b}-\frac {c \log \left (\tanh \left (\frac {1}{2} (a+b x)\right )\right )}{2 b}-\frac {d \left (-a \log \left (\tanh \left (\frac {1}{2} (a+b x)\right )\right )-i \left ((i a+i b x) \left (\log \left (1-e^{i (i a+i b x)}\right )-\log \left (1+e^{i (i a+i b x)}\right )\right )+i \left (\text {PolyLog}\left (2,-e^{i (i a+i b x)}\right )-\text {PolyLog}\left (2,e^{i (i a+i b x)}\right )\right )\right )\right )}{2 b^2}-\frac {d x \text {sech}^2\left (\frac {a}{2}+\frac {b x}{2}\right )}{8 b}-\frac {c \text {sech}^2\left (\frac {1}{2} (a+b x)\right )}{8 b}+\frac {d \text {csch}\left (\frac {a}{2}\right ) \text {csch}\left (\frac {a}{2}+\frac {b x}{2}\right ) \sinh \left (\frac {b x}{2}\right )}{4 b^2}+\frac {d \text {sech}\left (\frac {a}{2}\right ) \text {sech}\left (\frac {a}{2}+\frac {b x}{2}\right ) \sinh \left (\frac {b x}{2}\right )}{4 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(196\) vs.
\(2(81)=162\).
time = 0.69, size = 197, normalized size = 2.14
method | result | size |
risch | \(-\frac {{\mathrm e}^{b x +a} \left (b d x \,{\mathrm e}^{2 b x +2 a}+b c \,{\mathrm e}^{2 b x +2 a}+b d x +{\mathrm e}^{2 b x +2 a} d +b c -d \right )}{b^{2} \left ({\mathrm e}^{2 b x +2 a}-1\right )^{2}}+\frac {c \arctanh \left ({\mathrm e}^{b x +a}\right )}{b}-\frac {d \ln \left (1-{\mathrm e}^{b x +a}\right ) x}{2 b}-\frac {d \ln \left (1-{\mathrm e}^{b x +a}\right ) a}{2 b^{2}}-\frac {d \polylog \left (2, {\mathrm e}^{b x +a}\right )}{2 b^{2}}+\frac {d \ln \left ({\mathrm e}^{b x +a}+1\right ) x}{2 b}+\frac {d \ln \left ({\mathrm e}^{b x +a}+1\right ) a}{2 b^{2}}+\frac {d \polylog \left (2, -{\mathrm e}^{b x +a}\right )}{2 b^{2}}-\frac {d a \arctanh \left ({\mathrm e}^{b x +a}\right )}{b^{2}}\) | \(197\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1026 vs.
\(2 (79) = 158\).
time = 0.35, size = 1026, normalized size = 11.15 \begin {gather*} -\frac {2 \, {\left (b d x + b c + d\right )} \cosh \left (b x + a\right )^{3} + 6 \, {\left (b d x + b c + d\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + 2 \, {\left (b d x + b c + d\right )} \sinh \left (b x + a\right )^{3} + 2 \, {\left (b d x + b c - d\right )} \cosh \left (b x + a\right ) + {\left (d \cosh \left (b x + a\right )^{4} + 4 \, d \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + d \sinh \left (b x + a\right )^{4} - 2 \, d \cosh \left (b x + a\right )^{2} + 2 \, {\left (3 \, d \cosh \left (b x + a\right )^{2} - d\right )} \sinh \left (b x + a\right )^{2} + 4 \, {\left (d \cosh \left (b x + a\right )^{3} - d \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right ) + d\right )} {\rm Li}_2\left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )\right ) - {\left (d \cosh \left (b x + a\right )^{4} + 4 \, d \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + d \sinh \left (b x + a\right )^{4} - 2 \, d \cosh \left (b x + a\right )^{2} + 2 \, {\left (3 \, d \cosh \left (b x + a\right )^{2} - d\right )} \sinh \left (b x + a\right )^{2} + 4 \, {\left (d \cosh \left (b x + a\right )^{3} - d \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right ) + d\right )} {\rm Li}_2\left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )\right ) - {\left ({\left (b d x + b c\right )} \cosh \left (b x + a\right )^{4} + 4 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + {\left (b d x + b c\right )} \sinh \left (b x + a\right )^{4} + b d x - 2 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right )^{2} - 2 \, {\left (b d x - 3 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right )^{2} + b c\right )} \sinh \left (b x + a\right )^{2} + b c + 4 \, {\left ({\left (b d x + b c\right )} \cosh \left (b x + a\right )^{3} - {\left (b d x + b c\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + 1\right ) + {\left ({\left (b c - a d\right )} \cosh \left (b x + a\right )^{4} + 4 \, {\left (b c - a d\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + {\left (b c - a d\right )} \sinh \left (b x + a\right )^{4} - 2 \, {\left (b c - a d\right )} \cosh \left (b x + a\right )^{2} + 2 \, {\left (3 \, {\left (b c - a d\right )} \cosh \left (b x + a\right )^{2} - b c + a d\right )} \sinh \left (b x + a\right )^{2} + b c - a d + 4 \, {\left ({\left (b c - a d\right )} \cosh \left (b x + a\right )^{3} - {\left (b c - a d\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - 1\right ) + {\left ({\left (b d x + a d\right )} \cosh \left (b x + a\right )^{4} + 4 \, {\left (b d x + a d\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + {\left (b d x + a d\right )} \sinh \left (b x + a\right )^{4} + b d x - 2 \, {\left (b d x + a d\right )} \cosh \left (b x + a\right )^{2} - 2 \, {\left (b d x - 3 \, {\left (b d x + a d\right )} \cosh \left (b x + a\right )^{2} + a d\right )} \sinh \left (b x + a\right )^{2} + a d + 4 \, {\left ({\left (b d x + a d\right )} \cosh \left (b x + a\right )^{3} - {\left (b d x + a d\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )\right )} \log \left (-\cosh \left (b x + a\right ) - \sinh \left (b x + a\right ) + 1\right ) + 2 \, {\left (b d x + 3 \, {\left (b d x + b c + d\right )} \cosh \left (b x + a\right )^{2} + b c - d\right )} \sinh \left (b x + a\right )}{2 \, {\left (b^{2} \cosh \left (b x + a\right )^{4} + 4 \, b^{2} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + b^{2} \sinh \left (b x + a\right )^{4} - 2 \, b^{2} \cosh \left (b x + a\right )^{2} + 2 \, {\left (3 \, b^{2} \cosh \left (b x + a\right )^{2} - b^{2}\right )} \sinh \left (b x + a\right )^{2} + b^{2} + 4 \, {\left (b^{2} \cosh \left (b x + a\right )^{3} - b^{2} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right ) \operatorname {csch}^{3}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {c+d\,x}{{\mathrm {sinh}\left (a+b\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________